THE BEST TWENTY PROJECT WITH THE ARDUiNO by Elif AVCU

THE BEST TWENTY PROJECT WITH THE ARDUiNO by Elif AVCU

Author:Elif AVCU [AVCU, Elif]
Language: eng
Format: azw3
Published: 2018-11-25T16:00:00+00:00


val = map(val, 0, 1023, 0, 179);

msg[0] = val;

radio.write(msg, 1);

}

Servo code (Receiver Code)

#include <Servo.h>

#include <SPI.h>

#include "RF24.h"

Servo myservo;

//SCK -> 13//MISO -> 12//MOSI -> 11//CSN -> 7//CE -> 8

RF24 radio(8,7);

const uint64_t pipe = 0xE8E8F0F0E1LL;

int msg[1];

void setup()

{

myservo.attach(9);

radio.begin();

radio.openReadingPipe(1,pipe);

radio.startListening();

}

void loop()

{

if (radio.available()){

bool done = false;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.